package com.noticiasfi;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class Buscar extends Activity {
	/**
	 * @see android.app.Activity#onCreate(Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.buscar);
}
	
	public boolean onCreateOptionsMenu(Menu menu) {
	    super.onCreateOptionsMenu(menu);
	    MenuInflater inflater = getMenuInflater();
	    inflater.inflate(R.menu.menuopciones, menu);
	    return true;
	}

@Override
public boolean onOptionsItemSelected(MenuItem item) {

	switch(item.getItemId()){
			case R.id.inicio:
				Intent in = new Intent(Buscar.this, MenuPrincipal.class);
				startActivity(in);
				break;
			case R.id.categorias:
				Intent in2 = new Intent(Buscar.this, Categorias.class);
				startActivity(in2);
				break;
			case R.id.mapa:
				Intent in3 = new Intent(Buscar.this, Mapa.class);
				startActivity(in3);
				break;
			case R.id.buscar:
	
				break;
	}
	return super.onOptionsItemSelected(item);
}
	@Override
	public void onBackPressed() {

	}
	
}
